//
// Decompiled by Jadx - 353ms
//
package ge;

import fn.j;
import fn.x;
import fn.y;
import fo.b;
import java.lang.reflect.Method;
import me.plusne.common.Json.JsonHookStatic;
import o.a;
import org.luckypray.dexkit.query.FindClass;
import org.luckypray.dexkit.query.FindMethod;
import org.luckypray.dexkit.query.matchers.ClassMatcher;
import org.luckypray.dexkit.query.matchers.FieldMatcher;
import org.luckypray.dexkit.query.matchers.MethodMatcher;
import org.luckypray.dexkit.result.ClassData;
import org.luckypray.dexkit.result.MethodData;

@a("TK")
public final class o extends x {
    public static MethodData cp;
    public MethodData cq;
    public ClassData cr;

    public final void a() {
        int c = b.c();
        MethodData d = b.d(c);
        this.cq = d;
        JsonHookStatic jsonHookStatic = y.by;
        if (d == null) {
            MethodData methodData = (MethodData) jsonHookStatic.getBridge().findMethod(FindMethod.create().matcher(MethodMatcher.create().paramTypes(new Class[]{Object.class, Method.class, Object[].class}).name("invoke").returnType("java.lang.Object").declaredClass(ClassMatcher.create().addField(FieldMatcher.create().type(Object[].class))))).first();
            this.cq = methodData;
            b.f(c, methodData.getDescriptor());
        }
        j.bd(this.cq.getClassName(), this.cq.getMethodName(), new Object[]{Object.class, Method.class, Object[].class, new a(this)});
        int c2 = b.c();
        ClassData b = b.b(c2);
        this.cr = b;
        if (b == null) {
            ClassData classData = (ClassData) jsonHookStatic.getBridge().findClass(FindClass.create().matcher(ClassMatcher.create().usingStrings(new String[]{"password_status", "enterMethod", "|clear:"}))).first();
            this.cr = classData;
            b.f(c2, classData.getDescriptor());
        }
        int c3 = b.c();
        MethodData d2 = b.d(c3);
        cp = d2;
        if (d2 == null) {
            MethodData methodData2 = (MethodData) jsonHookStatic.getBridge().findMethod(FindMethod.create().searchInClass(jsonHookStatic.getBridge().findClass(FindClass.create().matcher(ClassMatcher.create().className("com.ss.android.ugc.aweme.IAccountService")))).matcher(MethodMatcher.create().returnType(this.cr.getName()))).first();
            cp = methodData2;
            b.f(c3, methodData2.getDescriptor());
        }
    }
}
